package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class LastIndex {
    public static void main(String[] args) {
        String s1="nihao,This is java,and that is java74,Who are you belong to?";
        int p=s1.lastIndexOf("java");
        System.out.println(p);
        String str="马聪宝.zip";
        boolean b=str.matches("[\\u4e00-\\u9fa5]+\\.(zip|rar)");
        System.out.println(b);
        System.out.println(">>>>>>>分割>>>>>");
        String []ar=s1.split("(\\.|,|\\s)");
        for(String t:ar)
            System.out.println(t);

        System.out.println("-----------替换-0000000000000");
        String s6="sdlfkjsdf 3#$K2j3423423osjdfsfsldkfj0sldfkjsf 3sdfsdf###";
        s6=s6.replaceAll("\\d","");
        System.out.println(s6);
    }
}
